package com.atguigu.demojenkins.controller;

import org.springframework.web.bind.annotation.*;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/user")
public class UserController {

    @GetMapping
    public String findAll() {

//        List<byte[]>  keys = new ArrayList<>();
//        keys.add(new byte[]{});
//        for (byte[] byte : keys) {
//            System.out.println(byte.toString());
//        }
        //for的快捷键
        //iter
        //itar
        return "hello";
    }

    @PostMapping("/test1")
    public Map<String, Object> test1(
            @RequestParam String actionGuid,
            @RequestParam String markname,
            @RequestParam String userGuid,
            @RequestParam String userName,
            @RequestParam String userMobile,
            @RequestParam String customerMobile,
            @RequestParam String cityName
    ){
        Map<String, Object> map = new HashMap<>();
        map.put("result", userMobile);
        map.put("code", 20005);
        map.put("message", "网关失败");
        map.put("data", null);
        map.put("timestamp", 0);



        return map;

    }
}
